package com.lsk.order.FallBack;

import com.lsk.model.Bean.Product;
import com.lsk.order.api.ProductApi;
import org.springframework.stereotype.Component;


@Component
public class ProductFallBack implements ProductApi {
    @Override
    public Product getProduct(Long productId) {
        Product product = new Product();
        product.setProductId(productId);
        product.setProductName("未知商品"+productId);
        product.setProductPrice(9999.99);
        return product;
    }
}
